import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/gloable.css'
import request from "@/utils/request";
import axios from 'axios'
import uploader from 'vue-simple-uploader'
import * as echarts from 'echarts';


// 全局注册
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

// 刷新头部组件的用户昵称
Vue.prototype.$eventBus = new Vue();
Vue.use(mavonEditor)
Vue.config.productionTip = false
Vue.use(ElementUI, { size: 'mini'});
Vue.use(echarts)

Vue.prototype.request=request

// 引入 axios
Vue.prototype.$axios = axios
// axios请求url前缀
axios.defaults.baseURL = 'http://127.0.0.1:16000'

Vue.use(uploader)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

